{% extends 'base.html' %}

{% block title %}登录{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <div class="card">
            <div class="card-header">
                <h4 class="mb-0">用户登录</h4>
            </div>
            <div class="card-body">
                <form method="post">
                    {% csrf_token %}
                    {{ form.as_p }}
                    <button type="submit" class="btn btn-primary">登录</button>
                    <a href="{% url 'register' %}" class="btn btn-link">没有账号？立即注册</a>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %}
